﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public class Utils
{
    public static UIAssetInfoAttribute GetAttributeInfo<T>()
    {
        UIAssetInfoAttribute attrInfo = null;
        Attribute[] attrs = Attribute.GetCustomAttributes(typeof(T));
        foreach (Attribute attr in attrs) {
            if (attr is UIAssetInfoAttribute) {
                attrInfo = attr as UIAssetInfoAttribute;
                break;
            }
        }
        return attrInfo;
    }
}

